package com.example.weathermvvm.data.model.weather

import com.google.gson.annotations.SerializedName

/**
 *
 * @Author： LJH
 * @Time： 2022/8/15
 * @description：城市
 */
class Basic {
    @SerializedName("city")
    var cityName = ""
    @SerializedName("id")
    var weatherId = ""

    lateinit var update:Update

    inner class Update{
        @SerializedName("loc")
        var updateTime = ""

        fun time() = updateTime.split(" ")[1]
    }
}